#include <stdio.h>   //这代码输出的是可能情况的具体样子，而不是可能情况的个数
int main()
{
    int i;
    int t;
    printf("how many times you wanna check");
    scanf("%d",&t);
    int m;
    int n;
    int j;
    int k;
    while(t)
    {
        t=t-1;
        printf("input n and m;n is the number of coins;m is the number of money:");
        scanf("%d,%d",&n,&m);
        for(i=0;i<=n;i++)
        {
            for(j=0;j<=n;j++)
            {
                for(k=0;k<=n;k++)
                {
                    if(i+j+k==n&&i+2*j+5*k==m)
                    { printf("the possible stuation is:there are %d 1 coins,%d 2 coins,%d 5coins",i,j,k);
                        printf("\n");
                    }   
                }
            }
        }
    }


return 0;
}
